home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / macintosh technotes and q&as / technotes / tn / samplecode.sit.hqx / Sample Code / CodecLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-22  |  2.4 KB  |  83 lines

  1. /*
  2.     File:        CodecLibrary.h
  3.  
  4.     Contains:    Graphics library for QuickTime decompression of QuickDraw GX
  5.                 data.
  6.  
  7.                 This library uses QuickTime compression and decompression to
  8.                 image QuickDraw GX data. The basic technique is to encapsulate
  9.                 the QuickDraw GX image in a compressed data format using the
  10.                 object flattening functions from QuickDraw GX. Once the
  11.                 compressed image data is created, it may be passed to the
  12.                 QuickDraw GX codec and drawn using the QuickTime image
  13.                 compression functions or embedded within a QuickDraw picture
  14.                 and drawn using the DrawPicture function. In either case, the
  15.                 compressed data is passed to the the low-level QuickDraw
  16.                 drawing routines through the StdPix bottleneck routine. StdPix
  17.                 decompresses the data using the QuickDraw GX codec and passes
  18.                 the decompressed data to the bitsProc bottleneck routine when
  19.                 rendering the image.
  20.  
  21.     Written by:    Mike Reed
  22.  
  23.     Copyright:    © 1995-1997 by Apple Computer, Inc., all rights reserved.
  24.  
  25.     Writers:
  26.  
  27.         (jtd)    John Daggett
  28.         (DH)    David Hayward
  29.         (IK)    Ingrid Kelly
  30.  
  31.     Change History (most recent first):
  32.  
  33.          <5>      6/1/97    IK        Modify printing routines for GXGraphics 1.1.6.
  34.          <4>      4/8/97    DH        Minor fix.
  35.          <3>      2/6/97    DH        Added ShapeToPICTWithShape.
  36.          <2>     9/14/95    jtd        Replaced boolean with Boolean.
  37.          <1>     9/14/95    jtd        First checked in.
  38. */
  39.  
  40. #ifndef __CODECLIBRARY__
  41. #define __CODECLIBRARY__
  42.  
  43. #ifndef __EVENTS__
  44. #include <Events.h>
  45. #endif
  46.  
  47. #ifndef __GXTYPES__
  48. #include <GXTypes.h>
  49. #endif
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. #if PRAGMA_ALIGN_SUPPORTED
  56. #pragma options align=mac68k
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62.  
  63. extern Handle        GXCdShapeToHandle(gxShape source, PicHandle proxie, Boolean forPrintingOnly, Boolean eraseBackground);
  64. extern PicHandle    GXCdShapeToPicture(gxShape theShape, PicHandle proxie, Fixed hScale, Fixed vScale, Boolean forPrintingOnly, Boolean eraseBackground);
  65. extern void            GXCdDrawShape(gxShape theShape, PicHandle proxie, Fixed hScale, Fixed vScale, Boolean forPrintingOnly, Boolean eraseBackground);
  66. extern PicHandle    GXCdShapeToBitmap(gxShape source);
  67. extern void            GXCdShapeToScrap(gxShape source, Boolean addProxie, Boolean forPrintingOnly, Boolean eraseBackground);
  68. extern void            GXCdDragAndDropShape(EventRecord* event, gxShape shape);
  69.  
  70. #if PRAGMA_IMPORT_SUPPORTED
  71. #pragma import off
  72. #endif
  73.  
  74. #if PRAGMA_ALIGN_SUPPORTED
  75. #pragma options align=reset
  76. #endif
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82. #endif /* __CODECLIBRARY__ */
  83.